<?php
namespace app\index\controller;

use app\index\controller\Character;
use app\index\controller\Llogin;
use app\index\controller\Lregister;
use think\Controller;

/**
 * CronRecent updateToRecent()方法由系统计划任务程序定期调用，实现用户账号登录注册记录自动同步
 */
class Cronrecent extends Controller
{

    public function _initialize()
    {
        $this->lregister = new Lregister();
        $this->llogin    = new Llogin();
        $this->character = new Character();
    }

    public function updateToRecent()
    {
        $this->llogin->updateToRecent();
        $this->lregister->updateToRecent();
        $this->character->updateToRecent();
    }
}
